package com.polaris.live.adapter.match

import com.polaris.live.R
import com.polaris.live.widget.avatar.AvatarView
import com.zhpan.bannerview.BaseBannerAdapter
import com.zhpan.bannerview.BaseViewHolder

/**
 * MatchingAdapter
 *
 * @author Created by 半仙 on 2023/10/20/020 16:14
 */
class MatchingAdapter : BaseBannerAdapter<String>() {
    override fun bindData(
        holder: BaseViewHolder<String>,
        data: String?,
        position: Int,
        pageSize: Int,
    ) {
        val imageView = holder.findViewById<AvatarView>(R.id.item_head)
        imageView.setImageUrl(data)
    }

    override fun getLayoutId(viewType: Int): Int {
        return R.layout.adapter_match_head
    }

}